package com.jx.lcs.messagepush.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 系统消息entity
 * @author ty
 * @date 2015年1月13日
 */
@Entity
@Table(name = "tb_sys_message")
@DynamicUpdate @DynamicInsert
public class SysMessage implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	// Fields
	private String id;
	
	private String title;
	
	private String content;
	
	private String sendUid;
	
	private Date sendtime;

	@Column(name = "TITLE")
	public String getTitle() {
		return title;
	}

	public void setTitle(String t) {
		title = t;
	}

	@Column(name = "CONTENT")
	public String getContent() {
		return content;
	}

	public void setContent(String c) {
		content = c;
	}

	@Column(name = "SENDUID")
	public String getSendUid() {
		return sendUid;
	}

	public void setSendUid(String s) {
		sendUid = s;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "SENDTIME", length = 20)
	public Date getSendtime() {
		return sendtime;
	}

	public void setSendtime(Date s) {
		sendtime = s;
	}

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "ID", unique = true, nullable = false)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}